package com.hm.ibsm.auto;

import java.util.ArrayList;
import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

/**
 * @author shishun.wang
 * @date 2017年3月6日 下午5:58:45
 * @version 1.0
 * @describe
 */
@Data
@ConfigurationProperties(prefix = "com.hm.ibsm")
public class IbsmProperties {

	private List<String> whiteList = new ArrayList<String>();

	private Author author = new Author();

	@Data
	public class Author {

		private boolean singlePoint;

		private long tokenValidTime;

		private boolean devAuthEnable;

		private AuthDevToken devToken = new AuthDevToken();

		@Data
		public class AuthDevToken {

			private String userName;

			private String secretKey;

			private String token;
		}
	}

}
